/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2020年2月27日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package iterator.waiter;

/**
 * @Type CakeHouseMenu
 * @Desc
 * @author 52489
 * @date 2020年2月27日
 * @Version V1.0
 */
public class CakeHouseMenu {

    private int menuItems[] = new int[100];

    Iterator getIterator() {
        return new CakeHouseIterator();
    }

    class CakeHouseIterator implements Iterator {

        private int pos = 0;

        /**
         * @param pos
         */
        public CakeHouseIterator() {
            pos = 0;
        }

        /*
         * (non-Javadoc)
         * 
         * @see iterator.waiter.Iterator#hasNext()
         */
        @Override
        public boolean hasNext() {
            return pos < menuItems.length;
        }

        /*
         * (non-Javadoc)
         * 
         * @see iterator.waiter.Iterator#next()
         */
        @Override
        public Object next() {

            return null;
        }

    }
}
